package com.web.service;

import com.web.dao.PersonMapper;
import com.web.pojo.Person;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PersonService {

    //自动绑定mapper
    @Autowired
    PersonMapper personMapper;
    public void insertPerson(Person person){
        personMapper.insertPerson(person);
    }
}
